package com.leyou.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.auth.dto.UserDetail;
import com.leyou.item.dto.UserDTO;
import com.leyou.user.entity.User;
import org.springframework.http.HttpRequest;

import javax.servlet.http.HttpServletRequest;

public interface UserService extends IService<User> {
    //根据用户名和密码查询
    UserDTO queryUserByUsernamePassword(String username, String password);


    //判断信息是否存在
    Boolean isExistsInfo(String date, Integer type);

    //用户注册
    void loginUser(String username, String password, String phone, String code);


    //发送短信验证码
    void codeSms(String phone);

    //获取用户名用于前端页面回显
    //UserDetail queryUsername(HttpServletRequest request);
}
